package com.fuershiye.woman.monitor.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fuershiye.woman.monitor.dao.ContentDao;
import com.fuershiye.woman.monitor.model.Content;
import com.fuershiye.woman.monitor.service.ContentService;

@Service("contentService")
public class ContentServiceImpl implements ContentService {

    @Autowired
    private ContentDao contentDao;

    @Override
    public void save(Content content) {
    	contentDao.save(content);
    }

    @Override
    public Content get(Long id) {
        return contentDao.get(id);
    }

    @Override
    public void delete(Long id) {
    	contentDao.delete(id);
    }

    @Override
    public List<Content> getPage(Integer type, Integer page, Integer pageSize) {
        return contentDao.getPage(type, page, pageSize);
    }

}
